package com.sangu.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 文章(Article)表实体类
 *
 * @author makejava
 * @since 2024-06-19 14:12:57
 */
@TableName("sg_article")
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuppressWarnings("serial")
public class Article {
    //id
    @TableId
    private Long id;
    //标题
    private String title;
    //文章内容
    private String content;
    //文章类型:1文章，2草稿
    private String type;
    //文章摘要
    private String summary;
    //所属分类Id
    private Long categoryId;
    //缩略图
    private String thumbnail;
    //是否置顶:0否，1是
    private String isTop;
    //状态:0已发布,1草稿
    private String status;
    //评论数
    private Integer commentCount;
    //访问数
    private Long viewCount;
    //允许评论：1是，0否
    private String isComment;
    //创建人
    private Long createBy;
    //创建时间
    private Date createTime;
    //更新人
    private Long updateBy;
    //更新时间
    private Date updateTime;
    //删除标志：0未删除
    private Integer delFlag;
}

